package main

import "gitee.com/zhucheer/orange/app"

func main() {
	router := &Route{}
	app.AppStart(router)
}

type Route struct {
}

func (s *Route) ServeMux() {
	app.NewRouter("").GET("/", func(ctx *app.Context) error {
		return ctx.ToString("Hello world!")
	})

	app.NewRouter("").ASSETS("/storage", "./storage", app.AutoIndex)
}

func (s *Route) Register() {
}
